/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.ejb.sessionbean;

import cassys.dataaccess.DAOException;
import cassys.datatransferobjects.UserDTO;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import javax.ejb.Remote;

/**
 *
 * @author ASUS
 */

@Remote
public interface UserBeanRemote {
java.util.ArrayList <UserDTO> findAllUsers() throws DAOException;

    UserDTO findUser(String username) throws DAOException;
    
    UserDTO findUserByName(String username) throws DAOException;

    void updateUser(UserDTO user) throws DAOException;

    void insertUser(UserDTO user) throws DAOException;

    void deleteUser(UserDTO user) throws DAOException;

    boolean userValidate(String username, String password) throws DAOException;

    boolean isRoleAdmin(String userid) throws DAOException;
    
}
